package tests;

import common.Utils;

import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * Description:自动化测试未登录状态下页面情况
 * Author: WJW
 * Date: 2024-10-13
 * Time: 13:53
 */
public class PageByNoLogin extends Utils {
    public static String listurl = "http://8.137.19.140:9090/blog_list.html";
    public static String editturl = "http://8.137.19.140:9090/blog_edit.html";
    public static String detailturl = "http://8.137.19.140:9090/blog_detail.html";

    public PageByNoLogin() {
        super("");
    }

    public void ListPageByNoLogin() throws IOException {
        driver.get(listurl);

        String expect = driver.getTitle();
        getScreenShot(getClass().getName());

        assert expect.equals("登陆列表页");
    }

    public void EditPageByNoLogin() throws IOException{
        //TODO

    }

    public void DetailPageByNoLogin() throws IOException{
        //TODO
    }
}
